package com.byinsight.web.actions;

public enum ErrorCode {
	//TODO hardcoded Chinese, use Properties
	LOGON_FAIL("登录失败: 用户不存在或密码不正确"),
	USER_ALREADY_EXISTS("用户名已存在"),
	DIMENSION_NAME_EXISTS("维度名称已存在"),
	DIMDEF_PARSE_ERROR("Dimension definition parse error"),
	EXPENSE_PARSE_ERROR("Expense parse error"),
	DATE_PARSE_ERROR("Date parse error"),
	QUERY_DEFINITIN_PARSE_ERROR("QueryDefinition parse error"),
	DIM_REF_PARSE_ERROR("Dimension ref must start with dim_");
	
	private String desc;
	ErrorCode(String desc) {
		this.desc = desc;
	}
	
	public String getDesc() {
		return desc;
	}
}
